/**
 * @Title: ShiroTagFreeMarkerConfigurer
 * @Package cn.com.yiqi.wsc.portal.freemarker
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-胥钰淋
 * @date 2017/2/8 18:29
 * @version V1.0
 */
package cn.com.yiqi.wsc.config.freemarker;

import cn.com.yiqi.wsc.config.shiro.freemarker.ShiroTags;
import freemarker.template.TemplateException;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;

import java.io.IOException;

/**
 *
 *@ClassName: ShiroTagFreeMarkerConfigurer
 * @Description: TODO
 * @author 会员系统组-胥钰淋
 * @date 2017/2/8 18:29
 *
 */
public class ShiroTagFreeMarkerConfigurer extends FreeMarkerConfigurer {

    @Override
    public void afterPropertiesSet() throws IOException, TemplateException {
        super.afterPropertiesSet();
        this.getConfiguration().setSharedVariable("shiro", new ShiroTags());
    }

}
